package com.ruoyi.ysg.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 学生订单对象 ysg_order
 * 
 * @author xsz
 * @date 2025-11-28
 */
public class YsgOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private Long id;

    /** 学生ID */
    private Long studentId;
    
    /** 学生名称 */
    private String studentName;

    /** 套餐ID */
    private Long setMealId;
    
    /** 套餐名称 */
    private String setMealName;

    /** 订单金额 */
    private BigDecimal amount;

    /** 购买课时数 */
    private Long purchaseHours;

    /** 订单前课时数 */
    private Long beforeHours;

    /** 订单后课时数 */
    private Long afterHours;

    /** 订单状态（0：待支付，1：已支付，2：已取消） */
    private String status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setStudentId(Long studentId)
    {
        this.studentId = studentId;
    }

    public Long getStudentId()
    {
        return studentId;
    }
    public void setSetMealId(Long setMealId)
    {
        this.setMealId = setMealId;
    }

    public Long getSetMealId()
    {
        return setMealId;
    }
    public String getStudentName()
    {
        return studentName;
    }

    public void setStudentName(String studentName)
    {
        this.studentName = studentName;
    }

    public String getSetMealName()
    {
        return setMealName;
    }

    public void setSetMealName(String setMealName)
    {
        this.setMealName = setMealName;
    }
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }
    public void setPurchaseHours(Long purchaseHours)
    {
        this.purchaseHours = purchaseHours;
    }

    public Long getPurchaseHours()
    {
        return purchaseHours;
    }
    public void setBeforeHours(Long beforeHours)
    {
        this.beforeHours = beforeHours;
    }

    public Long getBeforeHours()
    {
        return beforeHours;
    }
    public void setAfterHours(Long afterHours)
    {
        this.afterHours = afterHours;
    }

    public Long getAfterHours()
    {
        return afterHours;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("studentId", getStudentId())
            .append("studentName", getStudentName())
            .append("setMealId", getSetMealId())
            .append("setMealName", getSetMealName())
            .append("amount", getAmount())
            .append("purchaseHours", getPurchaseHours())
            .append("beforeHours", getBeforeHours())
            .append("afterHours", getAfterHours())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}